package com.yz.jdd.base.utils;

import android.app.Activity;
import android.app.KeyguardManager;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Point;
import android.os.Build;

import android.view.WindowManager;



public class ScreenUtils{public static int getScreenHeight(Context context) {
    WindowManager wm = (WindowManager)context.getSystemService(Context.WINDOW_SERVICE);
    if (wm == null) {
        return -1;
    } else {
        Point point = new Point();
        if (Build.VERSION.SDK_INT >= 17) {
            wm.getDefaultDisplay().getRealSize(point);
        } else {
            wm.getDefaultDisplay().getSize(point);
        }

        return point.y;
    }
}

}
